package com.aw.manual.ejemplo014;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * User: gmc
 * Date: 21/04/2010
 */
public class EjemploInicializacion {

    public static void main(String[] args) {
        String configFiles = "classpath*:**/ejemplo014/app-config.xml";
        ApplicationContext appCtx = new ClassPathXmlApplicationContext(configFiles);
        ((ClassPathXmlApplicationContext)appCtx).registerShutdownHook();
        Pintor pintor = (Pintor) appCtx.getBean("pintor");
        pintor.caminar();
    }
}